package io.adrainty.demo.seata.account.feign;

import io.adrainty.demo.seata.account.models.entity.AccountEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>IAccountFeign</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description IAccountFeign
 * @since 2025/8/20 13:43:04
 */

@FeignClient(value = "account-service", path = "/account")
public interface IAccountFeign {

    @PostMapping("/addAccountBalance")
    Boolean addAccountBalance(@RequestBody AccountEntity param);

    @PostMapping("/frozenBalance")
    Boolean frozenBalance(@RequestBody AccountEntity param);

    @PostMapping("/rollBackAccountBalance")
    Boolean rollBackAccountBalance(AccountEntity accountEntity);

}
